﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ReporteCobroHon.ascx.vb" Inherits="Content_Reportes_rep_controls_ReporteCobroHon" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="ExportToExcel" namespace="KrishLabs.Web.Controls" tagprefix="RK" %>

<style type="text/css">
    .style1
    {
        width: 34px;
    }
    .tablaBusqueda
    {
        width: 1149px;
    }
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div class="titulos">
    <asp:label id="lbl_headerUsers" runat="server" cssclass="titulos" text="Reporte Cobro de Honorarios"></asp:label>
</div>

<asp:Panel ID="Panel1" runat="server" CssClass="roundedCorners">

<%--<asp:UpdatePanel ID="UPanel1" runat="server" UpdateMode="Always" >
<ContentTemplate>--%>
<table class="tablaBusqueda">
<tr>
<td> 
    <asp:Label ID="Label1" runat="server" Text="Despachos"></asp:Label>
    </td><td>
        <asp:DropDownList ID="ddlDespacho" runat="server" width="90px">
        </asp:DropDownList>
    </td>
    <td> 
        <asp:Label ID="Label2" runat="server" Text="Institución"></asp:Label>
    </td>
    <td>
        <asp:DropDownList ID="ddlInstitucion" runat="server" width="90px" 
            AutoPostBack="True">
        </asp:DropDownList>
    </td>
    <%--<td>
        <asp:Label ID="Label3" runat="server" Text="Cliente"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="txtCliente" runat="server" Width="75px" ></asp:TextBox>
    </td>
    <td>
        <asp:Label ID="Label6" runat="server" Text="Contrato"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="txtContrato" runat="server" Width="75px"></asp:TextBox>
        <asp:Label ID="txtContrato" runat="server" Text="" width="130px"></asp:Label>
        <asp:Label ID="bContrato" runat="server" Text="" width="130px"></asp:Label>

    </td>--%>
    <td>
        <asp:Label ID="Label4" runat="server" Text="Fecha Inicial"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="txtFechaI" runat="server"  Width="120px" ValidationGroup="g1" ></asp:TextBox>
        <asp:ImageButton ID="img_cal1" runat="server"  ImageUrl="~/images/calendar.gif" />
        <asp:CalendarExtender ID="calendar" runat="server" format="yyyy-MM-dd" PopupButtonID="img_cal1" TargetControlID="txtFechaI"></asp:CalendarExtender>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFechaI"
             Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" CloseImageUrl="~/images/close.gif"
                    CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                    TargetControlID="RequiredFieldValidator1" WarningIconImageUrl="~/images/Warning.png" />
        <asp:CompareValidator ID="chkStartIsDate" runat="server" Display="none" Operator="DataTypeCheck"
                    Type="Date" ControlToValidate="txtFechaI" ErrorMessage="Ingresa Fecha Inicial"
                    ValidationGroup="g1" ForeColor="Red" />
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="Server" CloseImageUrl="~/images/close.gif"
                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                    TargetControlID="chkStartIsDate" WarningIconImageUrl="~/images/Warning.png" />
    </td>
    <td>
        <asp:Label ID="Label5" runat="server" Text="Fecha Final"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="txtFechaF" runat="server" Width="75px"  ValidationGroup="g1"></asp:TextBox>
        <asp:ImageButton ID="img_cal2" runat="server"  ImageUrl="~/images/calendar.gif" />
        <asp:CalendarExtender ID="calendar2" runat="server" format="yyyy-MM-dd" PopupButtonID="img_cal2" TargetControlID="txtFechaF"></asp:CalendarExtender>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFechaF"
                    Display="None" ErrorMessage="Campo obligatorio" ForeColor="Red" ValidationGroup="g1"></asp:RequiredFieldValidator>
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" CloseImageUrl="~/images/close.gif"
                    CssClass="validatorCallout" Enabled="True" HighlightCssClass="validatorCalloutHighlight"
                    TargetControlID="RequiredFieldValidator2" WarningIconImageUrl="~/images/Warning.png" />
        <asp:CompareValidator ID="chkEndIsDate" runat="server" Display="none" Operator="DataTypeCheck"
                        Type="Date" ControlToValidate="txtFechaF" ForeColor="Red" ValidationGroup="g1"
                        ErrorMessage="Ingresa Fecha Final" />
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="Server" CloseImageUrl="~/images/close.gif"
                        CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                        TargetControlID="chkEndIsDate" WarningIconImageUrl="~/images/Warning.png" />
        <asp:CompareValidator ID="cmpStartAndEndDates" runat="server" Display="none" ForeColor="Red"
                        ValidationGroup="g1" Operator="GreaterThan" ControlToValidate="txtFechaF" ControlToCompare="txtFechaI"
                        ErrorMessage="La Fecha Final debe ser mayor a la inicial" />
                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="Server" CloseImageUrl="~/images/close.gif"
                        CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                        TargetControlID="cmpStartAndEndDates" WarningIconImageUrl="~/images/Warning.png" />
    </td>
    <%--<td>
        <asp:Label ID="Label7" runat="server" Text="Saldo Final"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="sf" runat="server" Width="75px"></asp:TextBox>        
    </td>--%>
    <td>
        <asp:ImageButton ID="ImageButton1" runat="server"  ValidationGroup="g1"
            ImageUrl="~/images/Search44.png" />
    </td>
</tr>
</table>

<asp:GridView ID="gvHonorarios" runat="server" AutoGenerateColumns="False" AllowPaging="True" PageSize="20"
     PagerStyle-CssClass="PagerColor" CssClass="Gridview" HeaderStyle-CssClass="HeaderFooterGridview" FooterStyle-CssClass="HeaderFooterGridview" 
     CellPadding="5" GridLines="None" AlternatingRowStyle-CssClass="GridviewAlt">
    <AlternatingRowStyle CssClass="GridviewAlt" />
        <Columns>
            <asp:BoundField DataField="Despacho" HeaderText="Despacho" />
            <asp:BoundField DataField="Institucion" HeaderText="Institución" />            
            <asp:BoundField DataField="Nombre" HeaderText="Cliente" />
            <asp:BoundField DataField="Contrato" HeaderText="Contrato" />
            <asp:BoundField DataField="SaldoP" HeaderText="Saldo Promedio" DataFormatString="{0:C7}" />
            <asp:BoundField DataField="Periodo" HeaderText="Días periodo" />
            <asp:BoundField DataField="Porcentaje" HeaderText="% Cuota"  />
            <asp:BoundField DataField="Cuota" HeaderText="Cuota" DataFormatString="{0:C}" />
            <asp:BoundField DataField="IVA" HeaderText="IVA" DataFormatString="{0:C}" />
            <asp:BoundField DataField="Comision" HeaderText="Total" DataFormatString="{0:C}" />
        </Columns>
        <FooterStyle CssClass="HeaderFooterGridview" />
        <HeaderStyle CssClass="HeaderFooterGridview" />
        <PagerStyle CssClass="PagerColor" />
    </asp:GridView>
    <asp:ImageButton ID="btn_excel" runat="server" 
        ImageUrl="~/images/excel333.png" Visible="False" />
    <%--<asp:HyperLink ID="hl_pdf" runat="server" Target="_blank" 
        NavigateUrl="~/Content/Reportes/crearRCH.aspx" ImageUrl="~/Images/PDF.png" 
        Visible="False"></asp:HyperLink>--%>
    <%--<RK:ExportToExcel ID="ExportToExcel1" runat="server" ApplyStyleInExcel="True" 
        Charset="utf-8" ContentEncoding="windows-1250" EnableHyperLinks="True" 
         IncludeTimeStamp="True" PageSize="All"  Text="Exportar" CssClass="button" ExportFileName="ReporteCobroHonorarios.xls"  GridViewID="gvHonorarios"  />--%>
    <br />
<%--</ContentTemplate>
</asp:UpdatePanel>--%>


</asp:Panel>